<style>
    .th_bg {
        background-color: #dddddd
    }
</style>

<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">

        <div class="layui-tab layui-tab-card" lay-filter="table-box">
            <ul class="layui-tab-title">
                <li class="layui-this">产品详情</li>
                <li>操作记录</li>

            </ul>
            <div class="layui-tab-content" style="height: 100%;">
                <div class="layui-tab-item layui-show">
                    <table class="layui-table " lay-size="lg">


                        <tbody>
                        <tr>
                            <th class="th_bg">订单号</th>
                            <td>{$row.sales_number}</td>

                            <th class="th_bg">下单时间</th>
                            <td></td>

                            <th class="th_bg">创建时间</th>
                            <td>{$row.create_time}</td>
                        </tr>
                        <tr>

                            <th class="th_bg">派单时间</th>
                            <td>{$row.send_time}</td>

                            <th class="th_bg">接单时间</th>
                            <td>{$row.accepted_time}</td>

                            <th class="th_bg"> AI制作时间</th>
                            <td>{$row.ai_time}</td>


                        </tr>
                        <tr>

                            <th class="th_bg">要求出货时间</th>
                            <td></td>

                            <th class="th_bg">实际出货时间</th>
                            <td></td>

                            <th class="th_bg">收货时间</th>
                            <td></td>

                        </tr>

                        <tr>

                            <th class="th_bg">要求入库时间</th>
                            <td>{$row.give_time}</td>

                            <th class="th_bg">实际入库时间</th>
                            <td>{$row.real_give_time}</td>

                            <th class="th_bg">是否超时</th>
                            <td>{$row.is_overtime==0?"未超时":"超时"}</td>


                        </tr>
                        </tbody>
                    </table>
                </div>
                <div class="layui-tab-item">
                    <table class="layui-table">

                        <thead>
                        <tr>
                            <th>状态</th>
                            <th>备注</th>
                            <th>操作人</th>
                            <th>操作时间</th>
                        </tr>
                        </thead>
                        <tbody>

                        {foreach $row['logs'] as $key=>$val}

                            <tr>
                                <td>{$val['type']}</td>
                                <td>{$val['remark']}</td>
                                <td>{$val['admin']['username']}</td>
                                <td>{$val['update_time']}</td>
                            </tr>
                        {/foreach}

                        </tbody>
                    </table>
                </div>

            </div>
        </div>
    </form>
</div>



